package com.xgzit.xgzmall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author xgz
 * @Date 2021-05-25 21:48
 */

@ConfigurationProperties(prefix = "xgzmall.thread")
@Component
@Data
public class ThreadPoolConfigProperties {
    /** 核心线程大小 **/
    private Integer coreSize;

    /** 最大线程大小 **/
    private Integer maxSize;

    /** 休眠时长 单位 秒**/
    private Integer keepAliveTime;
}
